﻿using System.Configuration;

namespace CardRegisterCollection.Model
{
    
    public class PubConstant
    {        
        /// <summary>
        /// 获取连接字符串
        /// </summary>
        public static string ConnectionString { get; set; }

        /// <summary>
        /// 得到web.config里配置项的数据库连接字符串。
        /// </summary>
        /// <param name="configName"></param>
        /// <returns></returns>
        public static string GetConnectionString(string configName)
        {
            string connectionString = ConfigurationManager.AppSettings[configName];
            return connectionString;
        }

        /// <summary>
        /// 系统加密包密码
        /// </summary>
        public static string AppZipPassword = "1";
    }
}
